import { axios } from '@/utils/request'

export function List(params) {
  return axios({
    url: '/goods-area-rules/list',
    method: 'get',
    params,
  })
}

export function Save(data) {
  return axios({
    url: '/goods-area-rules/save',
    method: 'post',
    data,
  })
}

export function Status(params) {
  return axios({
    url: '/goods-area-rules/set-status',
    method: 'get',
    params,
  })
}

// is_enable
export function orderRulesBuyerLocationList(params) {
  return axios({
    url: '/setting/order-rules-buyer-location/list',
    method: 'get',
    params,
  })
}

// id
export function orderRulesBuyerLocationInfo(params) {
  return axios({
    url: '/setting/order-rules-buyer-location/info',
    method: 'get',
    params,
  })
}

export function orderRulesBuyerLocationSave(data) {
  return axios({
    url: '/setting/order-rules-buyer-location/save',
    method: 'post',
    data,
  })
}

export function orderRulesBuyerLocationStatus(data) {
  return axios({
    url: '/setting/order-rules-buyer-location/status',
    method: 'post',
    data,
  })
}

export function districtInfo(data) {
  return axios({
    url: '/setting/order-rules-buyer-location/district-info',
    method: 'post',
    data,
  })
}